package com.cf.user.permission.service;

import com.cf.crud.service.BaseService;
import com.cf.user.permission.model.SystemRole;

import java.util.List;

public interface SystemRoleService extends BaseService<SystemRole> {
    /**
     * 获取用户的角色ID
     *
     * @param userId
     * @return
     */
    List<Long> userRoles(long userId);

    /**
     * 更新用户的角色
     *
     * @param userId
     * @param roleIds
     */
    void updateUserRoles(long userId, List<Long> roleIds);
}
